package com.example.myapplication.adapter;

import com.example.myapplication.bean.UserModel;

import org.androidannotations.annotations.EBean;

import java.util.ArrayList;
import java.util.List;

@EBean
public class ImMemoryUserFinder implements UserFinder {
    @Override
    public List<UserModel> findAll() {
        List<UserModel> userModels = new ArrayList<>();
        for (int i=1; i<=10; i++) {
            UserModel model = new UserModel();
            model.setFirstName("First " + i);
            model.setLastName("Silent " + i );
            userModels.add(model);
        }
        return userModels;
    }
}
